    server {
        listen       #BTSO_PORT#;
        server_name  0.0.0.0;
        large_client_header_buffers 4 16k;
        client_max_body_size 300m;
        client_body_buffer_size 128k;
        proxy_connect_timeout 60;#change 600 to 60 seconds
        proxy_read_timeout 600;
        proxy_send_timeout 600;
        proxy_buffer_size 64k;
        proxy_buffers   4 32k;
        proxy_busy_buffers_size 64k;
        proxy_temp_file_write_size 64k;
		add_header  X-Frame-Options SAMEORIGIN always;

        location / {
            proxy_set_header    btso #BTSO_PORT#;
			proxy_set_header	X-btso-uri  $request_uri;
            proxy_set_header    Host		$server_addr:$server_port;
            proxy_set_header    Real-IP		$remote_addr;

            set_encode_base64 $test $request_uri;
            set_encode_base64 $targ $args;

            proxy_pass          http://127.0.0.1:31180/btso/$test;
        }
    }
